package xyz.xtt.exchange.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.yulichang.base.MPJBaseMapper;

import org.apache.ibatis.annotations.Param;
import xyz.xtt.exchange.entity.TblAsset;
import xyz.xtt.exchange.vo.AssetDetailsVo;
import xyz.xtt.exchange.vo.AssetTradeRecordVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 资产基础信息表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-10-23
 */
public interface TblAssetMapper extends MPJBaseMapper<TblAsset> {

	List<Map<String, Object>> getMyAssets(String uid);

	AssetDetailsVo getAssetDetailsById(@Param("goodsId") String goodsId, @Param("firstType") String firstType,
			@Param("secondType") String secondType);

	List<AssetTradeRecordVo> getTradeRecordById(String id);

}
